/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package circuitsandbox;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author Przemek
 */
public class BMPFileFilter extends FileFilter implements java.io.FileFilter {

    @Override
    public boolean accept(File f) {
                if (f.isDirectory()) return true;
        String extension = Util.getExtension(f.getName());
        if (extension != null && extension.equals("bmp")) return true;
        return false;
    }

    @Override
    public String getDescription() {
        return "BMP Files";
    }
    
}
